package top.lgd.pojo.entity.operation;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import top.lgd.base.LgdEntity;

import javax.validation.constraints.Size;
import java.time.LocalDate;

/**
 * 经营预约表
 *
 * @author YYJ
 * @version 1.0
 * @since 2024/5/6 14:42
 */
@Getter
@Setter
@TableName("operation_appointment")
public class Appointment extends LgdEntity {

    private static final long serialVersionUID = 2771000857206159747L;

    /**
     * 手机号
     * Index
     */
    @Size(max = 16)
    private String mobile;

    /**
     * 姓氏
     */
    @Size(max = 8)
    private String firstName;

    /**
     * 性别（M：男；F：女）
     */
    @Size(max = 1)
    private String gender;

    /**
     * 预约日期
     */
    private LocalDate appointDate;

    /**
     * 预约时间
     */
    @Size(max = 16)
    private String appointTime;

    /**
     * 预约项目
     */
    @Size(max = 128)
    private String appointItem;

    @TableField(exist = false)
    private LocalDate startDate;

    @TableField(exist = false)
    private LocalDate endDate;
}